EC-CUBE 2.11.4
[ class tree: EC-CUBE 2.11.4 ] [ index: EC-CUBE 2.11.4 ] [ all elements ]

Source for file SC_Plugin.php

Documentation is available at SC_Plugin.php

  1. <?php
  2.  
  3. class SC_Plugin
  4. {
  5.     /**
  6.      *
  7.      * plugin_path
  8.      * @var String 
  9.      */
  10.     var $path;
  11.  
  12.     function SC_Plugin(){
  13.         $this->__construct();
  14.     }
  15.  
  16.     function __construct(){
  17.         if (!defined(PLUGIN_REALDIR)) {
  18.             define('PLUGIN_REALDIR'USER_REALDIR 'plugins/');
  19.         }
  20.         $this->init();
  21.     }
  22.  
  23.     function init(){
  24.     }
  25.  
  26.     function enable($classname){
  27.     }
  28.  
  29.     function getVersion(){
  30.     }
  31.  
  32.     function getName(){
  33.     }
  34.  
  35.     function process(){
  36.     }
  37.  
  38.     function mobileprocess(){
  39.     }
  40.  
  41.     function install(){
  42.     }
  43.  
  44.     function uninstall(){
  45.     }
  46.  
  47.     function disablePlugin(){
  48.         $objQuery new SC_Query_Ex();
  49.         $name preg_replace("/.php/"""__FILE__)// XXX 正規表現エスケープ漏れでは?
  50.         $objQuery->update("dtb_plugin"array('enable'=>'0')"plugin_name = ?"array($name));
  51.     }
  52.  
  53.     function enablePlugin(){
  54.         $objQuery new SC_Query_Ex();
  55.         $name preg_replace("/.php/"""__FILE__)// XXX 正規表現エスケープ漏れでは?
  56.         $objQuery->update("dtb_plugin"array('enable'=>'0')"plugin_name = ?"array($name));
  57.     }
  58.  
  59.     /**
  60.      *
  61.      * @return String インストール用のSQL
  62.      */
  63.     function getInstallSQL(){
  64.     }
  65.  
  66.     function getUninstallSQL(){
  67.     }
  68. }

Documentation generated on Fri, 24 Feb 2012 14:02:52 +0900 by Seasoft